package net.wangds.common.base.space;

public class Size<T extends Number> {
    private T width;
    private T height;

    public static <N extends Number> Size<N> of(N width, N height){
        return new Size<>(width, height);
    }

    public Size(){
    }

    public Size(T width, T height){
        this.width = width;
        this.height = height;
    }

    public T getWidth() {
        return width;
    }

    public void setWidth(T width) {
        this.width = width;
    }

    public T getHeight() {
        return height;
    }

    public void setHeight(T height) {
        this.height = height;
    }
}
